package com.funShopping.config.exception;

/**
 * @program: funShopping
 * @description: 自定抛出义异常
 * @author: talented_zhang
 * @create: 2024-03-30 16:13
 **/

public class CustomThrowException extends RuntimeException{
    private static final long serialVersionUID = 7901508069016901055L;

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public CustomThrowException(Integer code) {
        this.code = code;
    }

    public CustomThrowException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public CustomThrowException(String message, Throwable cause, Integer code) {
        super(message, cause);
        this.code = code;
    }

    public CustomThrowException(Throwable cause, Integer code) {
        super(cause);
        this.code = code;
    }

    public CustomThrowException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Integer code) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
    }
}
